package com.lyl.xxx.modules.web.account.model.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author Mr.Luo
 * @date 2022-09-27 10:05
 * @desc 修改密码
 */
@Data
public class ModifyPwdDTO {

    @NotNull
    private Long userId;

    @NotBlank(message = "pwd不能为空")
    @Length(min = 3,max = 20,message = "密码在3~20个字符之间")
    private String pwd;
}
